<?php
    
  
  /*$where = "[php_property:where]";
   Umwandlung (z.B. fÃ¼r id<>0)
  $where                    =str_replace("&lt;", "<", $where);
  $where                    =str_replace("&gt;", ">", $where);  */

  $limit = "[php_property:limit]";
  
  
  /* falls paging*/
if ("[php_property:paging]" !== "")
    {
    $pagingStart=0;
    $table      ="[php_property:table]";
    
    if (isset($_REQUEST[$table . "_start"]))
        $pagingStart=$_REQUEST[$table . "_start"];

    $limit="$pagingStart,[php_property:paging]";

    /*     // $limit = "{\$_REQUEST[$table.'_start']},".$e->paging;
            
             /*  $limit=0;if (isset($_REQUEST[$table.'_start'])) $limit=$_REQUEST[$table.'_start'];
               $limit=$limit.",".$e->paging;          
                         
               $limit = "if (isset($_REQUEST[page_start]) )"$e->limit;
                   $limit = codeReplaceParameterVariable($limit);  */                   
                   
}
  
  
  
  
  $additionalField="[php_property:additional_field]";    
  $sumField = "[php_property:sum_field]";
  
   $sqlField ="[php_property:sql_field]";        
  
  
   
  
  
  /* ZÃ¤hler fÃ¼r data_counter und data_counter2*/
  $dataCounter = 0;
  $dataCounter2 = 0;
  
  
  $d = new data();
  $query_[query_counter] = new data();
  $query_[query_counter]->table = "[php_property:table]";
  $query_[query_counter]->where = "[php_property:where]";
  $query_[query_counter]->groupby = "[php_property:groupby]";
  
  /* falls orderby nicht definiert wurde, wird default_orderby verwendet*/
  $orderby = "[php_property:orderby]";
  if ($orderby == "") {
    $orderby = "[php_property:default_orderby]";
  }
    
  $query_[query_counter]->orderby = $orderby;
  $query_[query_counter]->limit = $limit;
  $query_[query_counter]->search = "[php_property:search]";
  $query_[query_counter]->field = "[php_property:field]";       
  
    
  
  if ($sumField !== "") {
    $query_[query_counter]->additionalField = "SUM($sumField) sum";
  }
  
  
  
  foreach ($query_[query_counter]->getData() as $[query_var]) {
      
      /* alle Key Felder in Kleinschreibung umwandeln*/
      $[query_var] =array_change_key_case($[query_var]);  
      
      
      if (($dataCounter2 % 2) == 0) {
        $dataCounter2 = 0;
        }
        
     $dataCounter++;
     $dataCounter2++;
      
      
      
?>